﻿///*
// * TreeItem
// * 
// * initial implementation : 20.7.2011
// *
// * Copyright (c) Adam Sida, asida@centrum.cz.
// * All rights reserved.
// * 
// * for license see Petra.Gis.License.txt
// */
//using System;
//using System.Collections.Generic;

//namespace Petra.Gis.RenderingServices.PlanarBase
//{

//  /// <summary>
//  /// Treeitem handles basic inheritance problem with child collecion inside node.
//  /// child nodes and legend node inherits this class.
//  /// </summary>
//  public abstract class TreeItem
//  {


//    private LeafLegendNode _parent;

//    ///// <summary>
//    ///// this is used in MapLegend.ChildNodes, where this list is initialized
//    ///// </summary>
//    //protected IList<RenderableLegendNodeBase> internalDisplayOrder;



//    /// <summary>
//    /// sets parent node for current node
//    /// </summary>
//    public LeafLegendNode ParentNode
//    {
//      get { return _parent; }
//      protected set
//      {

//        //if (_nodeType != LegendNodeType.GroupNode)
//        //  throw new InvalidOperationException("cant append into non grou type node");

//        //null is disabled
//        if (value == null)
//          throw new InvalidOperationException(@"error unsupported null as parent
//                                                use RemoveNode() instead");

//        //if parent changed....
//        if (_parent != null && !_parent.Equals(value))
//          throw new NotImplementedException("sorry not avail yet");

//        _parent = value;
//      }
//    }





//    protected static void setParent(LeafLegendNode parent, LegendNodeBase child)
//    {
//      child.ParentNode = parent;
//    }




//  }
//}
